package com.doeis.manage.bean;

import java.sql.Timestamp;
import java.util.List;

import com.doeis.core.annotation.Associate;
import com.doeis.core.annotation.Table;
import com.doeis.core.bean.Entity;

@Table(name = "catalog")
public class Catalog extends Entity{
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String cat_name;
	private Integer item_id;
	private Integer sort_num;
	private Timestamp addTime;
	
	@Associate
	public static String tableName = "catalog";
	@Associate
	private List<Page> pages;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getCat_name() {
		return cat_name;
	}
	public void setCat_name(String cat_name) {
		this.cat_name = cat_name;
	}
	public Integer getSort_num() {
		return sort_num;
	}
	public void setSort_num(Integer sort_num) {
		this.sort_num = sort_num;
	}
	public Timestamp getAddTime() {
		return addTime;
	}
	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}
	public static String getTableName() {
		return tableName;
	}
	public static void setTableName(String tableName) {
		Catalog.tableName = tableName;
	}
	public Integer getItem_id() {
		return item_id;
	}
	public void setItem_id(Integer item_id) {
		this.item_id = item_id;
	}
	public List<Page> getPages() {
		return pages;
	}
	public void setPages(List<Page> pages) {
		this.pages = pages;
	}
	@Override
	public String toString() {
		return "Catalog [id=" + id + ", cat_name=" + cat_name + ", sort_num=" + sort_num + ", addTime=" + addTime + "]";
	}
}
